package com.toumy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toumy.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface UserDao extends BaseMapper<User> {

    @Select("select * from users where username = #{username}")
    User selectByUser(String username);
}
